github.com/refraction-networking/utls.halfConn.setErrorLocked (method)

44 uses

	github.com/refraction-networking/utls (current package)
		conn.go#L199: func (hc *halfConn) setErrorLocked(err error) error {
		conn.go#L621: 		return c.in.setErrorLocked(errors.New("tls: internal error: attempted to read record with pending application data"))
		conn.go#L626: 		return c.in.setErrorLocked(errors.New("tls: internal error: attempted to read record with QUIC transport"))
		conn.go#L638: 			c.in.setErrorLocked(err)
		conn.go#L651: 		return c.in.setErrorLocked(c.newRecordHeaderError(nil, "unsupported SSLv2 handshake received"))
		conn.go#L665: 		return c.in.setErrorLocked(c.newRecordHeaderError(nil, msg))
		conn.go#L673: 			return c.in.setErrorLocked(c.newRecordHeaderError(c.conn, "first record does not look like a TLS handshake"))
		conn.go#L679: 		return c.in.setErrorLocked(c.newRecordHeaderError(nil, msg))
		conn.go#L683: 			c.in.setErrorLocked(err)
		conn.go#L692: 		return c.in.setErrorLocked(c.sendAlert(err.(alert)))
		conn.go#L695: 		return c.in.setErrorLocked(c.sendAlert(alertRecordOverflow))
		conn.go#L700: 		return c.in.setErrorLocked(c.sendAlert(alertUnexpectedMessage))
		conn.go#L710: 		return c.in.setErrorLocked(c.sendAlert(alertUnexpectedMessage))
		conn.go#L715: 		return c.in.setErrorLocked(c.sendAlert(alertUnexpectedMessage))
		conn.go#L719: 			return c.in.setErrorLocked(c.sendAlert(alertUnexpectedMessage))
		conn.go#L722: 			return c.in.setErrorLocked(c.sendAlert(alertUnexpectedMessage))
		conn.go#L725: 			return c.in.setErrorLocked(io.EOF)
		conn.go#L728: 			return c.in.setErrorLocked(&net.OpError{Op: "remote error", Err: alert(data[1])})
		conn.go#L735: 			return c.in.setErrorLocked(&net.OpError{Op: "remote error", Err: alert(data[1])})
		conn.go#L737: 			return c.in.setErrorLocked(c.sendAlert(alertUnexpectedMessage))
		conn.go#L742: 			return c.in.setErrorLocked(c.sendAlert(alertDecodeError))
		conn.go#L746: 			return c.in.setErrorLocked(c.sendAlert(alertUnexpectedMessage))
		conn.go#L757: 			return c.in.setErrorLocked(c.sendAlert(alertUnexpectedMessage))
		conn.go#L760: 			return c.in.setErrorLocked(c.sendAlert(err.(alert)))
		conn.go#L765: 			return c.in.setErrorLocked(c.sendAlert(alertUnexpectedMessage))
		conn.go#L779: 			return c.in.setErrorLocked(c.sendAlert(alertUnexpectedMessage))
		conn.go#L793: 		return c.in.setErrorLocked(errors.New("tls: too many ignored records"))
		conn.go#L839: 		return c.out.setErrorLocked(&net.OpError{Op: "local error", Err: err})
		conn.go#L856: 	return c.out.setErrorLocked(&net.OpError{Op: "local error", Err: err})
		conn.go#L1109: 		return nil, c.in.setErrorLocked(fmt.Errorf("tls: handshake message of length %d bytes exceeds maximum of %d bytes", n, maxHandshakeSize))
		conn.go#L1177: 		return nil, c.in.setErrorLocked(c.sendAlert(alertUnexpectedMessage))
		conn.go#L1186: 		return nil, c.in.setErrorLocked(c.sendAlert(alertUnexpectedMessage))
		conn.go#L1252: 				return n, c.out.setErrorLocked(err)
		conn.go#L1259: 	return n + m, c.out.setErrorLocked(err)
		conn.go#L1321: 		return c.in.setErrorLocked(errors.New("tls: too many non-advancing records"))
		conn.go#L1341: 		return c.in.setErrorLocked(errors.New("tls: received unexpected key update message"))
		conn.go#L1346: 		return c.in.setErrorLocked(c.sendAlert(alertInternalError))
		conn.go#L1364: 			c.out.setErrorLocked(err)
		quic.go#L260: 		return quicError(c.in.setErrorLocked(errors.New("tls: handshake data received at wrong level")))
		u_conn.go#L473: 				return n, c.out.setErrorLocked(err)
		u_conn.go#L480: 	return n + m, c.out.setErrorLocked(err)
		u_conn.go#L837: 		return nil, c.in.setErrorLocked(c.sendAlert(alertUnexpectedMessage))
		u_conn.go#L969: 		return c.in.setErrorLocked(errors.New("tls: too many non-advancing records"))
		u_quic.go#L102: 		return quicError(c.in.setErrorLocked(errors.New("tls: handshake data received at wrong level")))